svm: Handle MC4_MISC threshold register for guests
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 24 May 2007 12:30:29 +0000 (13:30 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 24 May 2007 12:30:29 +0000 (13:30 +0100)
commitfea68d9d919d6605c60f67de4643b85b1bc09c09
tree38de5575c1f1eadda449a37d60fa652ef2753bf3
parent55e8bb3f3f91d6ed5fbed991996428589bda47cb
svm: Handle MC4_MISC threshold register for guests

The threshold register has been introduced in AMD RevF CPUs along with
SVM (Actually this MCA/MCE msr register existed before, but had no
meaning). Therefore no need for additional cpuid checks.

On read access it reports the HVM guest the register has been locked
by the BIOS. This means, it is not available for OS use. Thus, write
accesses are simply ignored. This behaviour actually matches real HW,
so guests can deal with this.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
xen/arch/x86/hvm/svm/svm.c
xen/include/asm-x86/msr.h